package com.lablzh.gdxy.repository.activity;

import com.lablzh.gdxy.entity.activity.Team;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeamRepository extends JpaRepository<Team,Integer> {
    Team findByTeamName(String teamName);

    List<Team> findAllByCaptainUsername(String username);

}
